< previous page page_421 next page >

Page 421
0421-01.jpg
Figure 11.7.
Loading data from a disk file.
Type.gifListing 11.5. Adding code to the cmdTitles_Click event.
Private Sub cmdTitles_Click()
    '
    ' add titles to existing graph
    '
    Dim intLoop As Integer
    '
    ' add the titles
    Graph1.GraphTitle = "Graph Title"
    Graph1.BottomTitle = "Bottom Title"
    Graph1.LeftTitle = "Left Title"
    '
    ' add legends
    Graph1.AutoInc = 1
    For intLoop = 1 To 12
        Graph1.LegendText = "L" & CStr(intLoop)
    Next
    '
    ' add labels
    Graph1.AutoInc = 1
    For intLoop = 1 To 12
        Graph1.LabelText = "X" & CStr(intLoop)
    Next
    '
    Graph1.DrawMode = gphDraw
    '
End Sub

 
< previous page page_421 next page >

If you like this book, buy it!